package com.tjsinfo.tjsoa.check.bo;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.google.gson.Gson;
import com.tjsinfo.tjsoa.check.vo.TCheckEmployee;
import com.tjsinfo.tjsoa.check.vo.TCheckLead;
import com.tjsinfo.tjsoa.check.vo.TCheckMain;
import com.tjsinfo.tjsoa.check.vo.TCheckMessage;

public interface TCheckManage {
	/**
	 * 读取领导班子考核EXCEL表数据
	 * @param xmlURL xml文件路径
	 * @param filePath EXCEL文件路径
	 * @return 集合对象
	 */
	public Boolean loadCheckLead(String xmlURL,String filePath,TCheckMain tCheckMain);
	
	/**
	 * 读取干部考核EXCEL表数据
	 * @param xmlURL xml文件路径
	 * @param filePath EXCEL文件路径
	 * @return 集合对象
	 */
	public Boolean loadCheckEmployee(String xmlURL,String filePath,TCheckMain tCheckMain);
	
	/**
	 * 增加考核
	 * @param checkLeads
	 * @return
	 */
	public Boolean addLeadCheck(List<TCheckLead> checkLeads,Integer mainId);
	
	/**
	 * 增加考核
	 * @param employees
	 * @return
	 */
	public Boolean addEmployeeCheck(List<TCheckEmployee> employees,Integer mainId);
	
	/**
	 * 构建考核班子数据对象集合
	 * @param excelrows
	 * @return
	 */
	public List<TCheckLead> buildCheckLead(List excelrows);
	
	
	/**
	 * 构建考核干部数据对象集合
	 * @param excelrows
	 * @return
	 */
	public List<TCheckEmployee> buildCheckEmployee(List excelrows);
	
	/**
	 * 总考核列表
	 * @return
	 */
	public List<TCheckMain> selectTCheckMain();
	
	
	/**
	 * 添加考核评价
	 * @return
	 */
	public Integer addTCheckMain(TCheckMain tCheckMain);
	
	/**
	 * 领导班子汇总信息
	 * @param id
	 * @return
	 */
	public List<TCheckLead> checkleadmain(Integer id);
	
	/**
	 * 干部汇总信息
	 * @param id
	 * @return
	 */
	public List<TCheckEmployee> checkemployeemain(Integer id);

	public  List<TCheckMessage> employeeListVar(List<TCheckEmployee> employees);

	public  List<TCheckMessage> leadListVar(List<TCheckLead> checkLeads);
	
	/**
	 * 删除考核评测表
	 * @param id
	 * @return
	 */
	public Boolean deleteMain(Integer id);
	
}
